package com.taiji.dicom4platform.common.datasource.property;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;

/**
 * @Description
 * @Author fanxl
 * @Date 2021/5/17
 **/
@Data
@Configuration
@Order(Ordered.HIGHEST_PRECEDENCE)
@ConfigurationProperties("spring.datasource")
public class DicomDataSourceProperties {
    public static final String PREFIX = "spring.datasource";
    /**
     * 用户名
     */
    private String username;

    /**
     * 密码
     */
    private String password;

    /**
     * jdbcurl
     */
    private String url;

    /**
     * 驱动类型
     */
    private String driverClassName;

    /**
     * 查询数据源的SQL
     */
    private String queryDsSql = "select * from datasource_conf where del_flag = ";

    /**
     * 是否动态数据源
     */
    private Boolean isDynamic = true;

}
